<html>
<head>
<script>
  var new_win;
  function open_win()
  {
    new_win=self.open("","NewWinName","height=200,width=200,left=10,top=10,scrollbars");
    new_win.document.write("My name is "+new_win.name);
  }
</script>
</head>

<body>
  <a href="javascript:void(0)" onClick="open_win()">Open</a>
</body>
</html>
